<template>
	<view>
		<van-popup v-model="showorder" class="show_maporder">
			<view class="offer_price">
				<view class="sub_form">
					<view class="atric_input">
						<input placeholder="请输入房屋面积" type="number" oninput="if(value.length>4)value=value.slice(0,4)"
							v-model="areaValue">
						<text>m²</text>
					</view>
					<view class="atric_input">
						<input placeholder="请输入手机号，短信获取报价结果" type="number" oninput="if(value.length>11)value=value.slice(0,11)"
							v-model="mobileValue">
					</view>
					<navigator class="artic_sub">立即报价</navigator>
					<view class="alert_msg">我们承诺提供该项<text>免费服务，绝不产生任何费用</text></view>
				</view>
			</view>
		</van-popup>
	</view>
</template>

<script>
export default {
	name: 'AppointVisit',
	data() {
		return {
			showorder: false,
			areaValue: '',
			mobileValue: ''
		}
	}
}
</script>

<style scoped>

.alert_msg {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.alert_msg text {
    color: #ff9000;
}

.show_maporder{
    width: 82%;
    border-radius: 5px;
}

.sub_form .atric_input input{
    width: 85%;
}

.artic_sub {
    margin-top: 24px;
    width: 100%;
    height: 120px;
    margin-bottom: 30px;
}

.artic_sub image {
    width: 100%;
    height: 100%;
}

.atric_input {
    width: 100%;
    height: 90px;
    background: #F5F5F5;
    font-size: 30px;
    line-height: 90px;
    color: #C9C9C9;
    border: 2px solid rgb(204, 204, 204);
    margin-top: 30px;
    border-radius: 10px;
}

.atric_input input {
    width: 80%;
    height: 70px;
    margin-top: 10px;
    border: none;
    background: #F5F5F5;
    padding-left: 20px;
    color: rgb(153, 153, 153);
}

.atric_input text {
    margin-right: 33px;
    color: black;
}

.offer_price {
    width: 100%;
    height: auto;
    background: white;
    margin-top: 20px;
}

.offer_price .line_title {
    width: 94%;
    height: 80px;
    float: left;
    margin-left: 3%;
    position: relative;
}

.offer_price .line_title img {
    width: 100%;
    height: 100%;
    float: left;
}

.offer_price .line_title:before {
    content: '';
    width: 100%;
    position: absolute;
    top: 50%;
    border-bottom: 2px solid #ddd;
}

.offer_price .line_title .line_prompt {
    text-align: center;
    position: absolute;
    top: 0;
    right: 14%;
    bottom: 0;
    left: 14%;
    font-size: 34px;
    background-color: #fff;
    line-height: 80px;
}

.offer_price .sub_form {
    width: 94%;
    height: auto;
    margin-left: 3%;
    margin-right: 3%;
}
</style>
